﻿using IntelligentAgriculture.Contracts.Dto.Input;
using IntelligentAgriculture.Contracts.Dto.Output;
using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface
{
    /// <summary>
    /// 单位接口
    /// </summary>
    public interface IUnitService
    {

        /// <summary>
        /// 获取省份列表
        /// </summary>
        /// <returns></returns>
        Task<List<Province>> ProvinceList();

        /// <summary>
        /// 获取城市列表
        /// </summary>
        /// <param name="provinceId"></param>
        /// <returns></returns>
        Task<List<City>> CityList(int provinceId);
        /// <summary>
        /// 获取区县列表
        /// </summary>
        /// <param name="cityId"></param>
        /// <returns></returns>
        Task<List<Area>> UnitList(int cityId);
        /// <summary>
        /// 添加单位
        /// </summary>
        /// <param name="unit"></param>
        /// <returns></returns>
        Task<int> Add(Unit unit);
        /// <summary>
        /// 单位列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PageOutput<UnitListOutPut>> GetUnitList(UnitListInPut input);




    }



}
